
#ifdef __cplusplus
	extern "C" {
#endif

#define ZReaderAPI __declspec(dllexport)

ZReaderAPI		int __stdcall		ZT_reader_init(int port,int BPS);

ZReaderAPI		int __stdcall		ZT_reader_close(int icdev);

ZReaderAPI		int __stdcall		ZT_rf_beep(int icdev,unsigned char msec);

ZReaderAPI		int __stdcall		ZT_rf_request(int icdev,unsigned char RequestMode,unsigned char *tagtype);

ZReaderAPI		int __stdcall		ZT_rf_anticoll(int icdev,unsigned char *CardID);

ZReaderAPI		int __stdcall		ZT_rf_select(int icdev,unsigned char *CardSize);

ZReaderAPI		int __stdcall		ZT_rf_reset(int icdev);

ZReaderAPI		int __stdcall		ZT_rf_close(int icdev);

ZReaderAPI		int __stdcall		ZT_rf_m1_halt(int icdev);

ZReaderAPI		int __stdcall		ZT_rf_m1_authentication(int icdev,unsigned char KeyType,unsigned char Sectors,unsigned char *KeyData);

ZReaderAPI		int __stdcall		ZT_rf_m1_read(int icdev,unsigned char Block,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_rf_m1_write(int icdev,unsigned char Block,unsigned char *sData);

ZReaderAPI		int __stdcall		ZT_rf_m1_InitiVal(int icdev,unsigned char Block,unsigned char *sData);

ZReaderAPI		int __stdcall		ZT_rf_m1_Increment(int icdev,unsigned char Block,unsigned char *sData);

ZReaderAPI		int __stdcall		ZT_rf_m1_Decrement(int icdev,unsigned char Block,unsigned char *sData);

ZReaderAPI		int __stdcall		ZT_rf_m1_ReadVal(int icdev,unsigned char Block,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_rf_cpu_halt(int icdev);

ZReaderAPI		int __stdcall		ZT_rf_cpu_rats(int icdev,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_rf_cpu_apdu(int icdev,unsigned char sLen,unsigned char *sData,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_rf_cpu_zt_erasedf(int icdev,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_ic_sam_set(int icdev,unsigned char bps);

ZReaderAPI		int __stdcall		ZT_ic_sam_close(int icdev,unsigned char Sim_Port);

ZReaderAPI		int __stdcall		ZT_ic_sam_reset(int icdev,unsigned char Sim_Port,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_ic_sam_apdu(int icdev,unsigned char Sim_Port,unsigned char sLen,unsigned char *sData,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		int __stdcall		ZT_rf_zt_card(int icdev,unsigned char *rLen,unsigned char *rData);

ZReaderAPI		void __stdcall		ZT_SingleDES(unsigned char sBlockLen,unsigned char *Key,unsigned char *sData,unsigned char *rData,unsigned char Mode);

ZReaderAPI		void __stdcall		ZT_TriDES(unsigned char sBlockLen,unsigned char *Key,unsigned char *sData,unsigned char *rData,unsigned char Mode);

ZReaderAPI		void __stdcall		ZT_Mac_8(unsigned char sDataLen,unsigned char *rMacCode,unsigned char *InitData,unsigned char *Key,unsigned char *sDaTa);

ZReaderAPI		void __stdcall		ZT_Mac_16(unsigned char sDataLen,unsigned char *rMacCode,unsigned char *InitData,unsigned char *Key,unsigned char *sDaTa);

#ifdef __cplusplus
	 }
#endif


